package com.cpit.platform.service.impl;

import com.cpit.platform.dao.TestEntityRepository;
import com.cpit.platform.dao.EntityRepository;
import com.cpit.platform.dto.TestEntity;
import com.cpit.platform.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Hulunliang
 * @since 2017/11/21.
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class TestServiceImpl extends EntityServiceImpl<TestEntity> implements TestService {
    @Autowired
    private TestEntityRepository entityRepository;

    @Override
    protected EntityRepository getEntityRepository() {
        return entityRepository;
    }
}
